<?php
namespace wlcat;
use Think\Template\Driver\Smart;
use wlcat\http\MiddleWare\MiddleFrameWareInterface;
use wlcat\src\Config;
use wlcat\src\MiddleWare;
use wlcat\src\Request;
use wlcat\src\Register;
use wlcat\src\Route;
use wlcat\src\templet\SmartyAdapt;


class Core {

    public function regitster()
    {
        //注册容器
        require_once FRAME_PATH.'src/RegitsterSet.php';
    }

    public function run() {
        //config配置
        Config::init();
        //注册容器
        $this->regitster();
        //中间件
        MiddleWare::load();
        //控制器实例
        Route::load();
    }

}